import sqlite3

class Urls():
    db = None
    def __init__(self):
        self.db = sqlite3.connect("db.sqlite").cursor()

    def get_urls_by_domain_id(self, id):
        urls = []
        self.db.execute("SELECT path FROM urls WHERE domain_id = ?", str(id));
        for row in self.db:
            urls.append(row[0])
        return urls
